@inherits BaseComponent

@namespace FluentCMS.Web.UI.Components

@if (Visible)
{
    <GridItem class="@this.GetClasses()" Small="GridItemColumn.Twelve" Medium="(GridItemColumn)(Cols + 1)">
        @if (!string.IsNullOrEmpty(Label) || LabelFragment != null)
        {
            <FormLabel Id="@Id" Required="@Required">
                @if (LabelFragment != null)
                {
                    @LabelFragment
                } 
                else
                {
                    @Label
                }
            </FormLabel>
        }
        @ChildContent
        @if (!string.IsNullOrEmpty(Hint))
        {
            <small class="@this.ClassName("FormFieldHint")">@Hint</small>
        }
        @if (!Dense)
        {
            <Spacer Size="SpacerSize.Medium" />
        }
    </GridItem>
}
